package com.itheima.service.db.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.domain.db.TestSoulQuestion;
import com.itheima.mapper.TestSoulQuestionMapper;
import com.itheima.service.db.TestSoulQuestionService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class TestSoulQuestionServiceImpl implements TestSoulQuestionService {

    @Autowired
    private TestSoulQuestionMapper testSoulQuestionMapper;
    @Override
    public List<TestSoulQuestion> findQuestion(Long testSoulId) {
        LambdaQueryWrapper<TestSoulQuestion> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TestSoulQuestion::getTestSoulId,testSoulId);
        return testSoulQuestionMapper.selectList(queryWrapper);
    }
}
